package com.hlkj.baojin.utils.hik;

import java.util.ArrayList;
import java.util.List;

public class WsArgOrderMap<K, V> {
	
	private List<OEntry>	oEntryList;
	
	public WsArgOrderMap() {
		this.oEntryList = new ArrayList<OEntry>();
	}
	
	public V put(K key, V value) {
		this.oEntryList.add(new OEntry(key, value));
		return value;
	}
	
	public List<OEntry> entryList() {
		return this.oEntryList;
	}
	
	class OEntry {
		
		private K	key;
		private V	value;
		
		public OEntry(K k, V v) {
			this.key = k;
			this.value = v;
		}
		
		public K getKey() {
			return this.key;
		}
		
		public void setKey(K key) {
			this.key = key;
		}
		
		public V getValue() {
			return this.value;
		}
		
		public void setValue(V value) {
			this.value = value;
		}
	}
}
